import axios from "axios/index";

/**
 * 资源管理
 * Author wuzhengru
 * date 2021-05-20
 **/
//资源管理-上传问卷校验
export const validExcel = (p1,p2,p3) =>
{ return axios
({method: 'get',
    url: '/api/v1/excel/validExcel?paperId='+p1+'&title='+p2+'&token='+p3,
    headers: {
        Authorization : localStorage.getItem('JWT_TOKEN')
    },})
    .then(res=> res.data)};
//资源管理-获取EXCEL模板路径
export const getExcelPath = (params) =>
{ return axios
({method: 'get',
    url: '/api/v1/excel/getExcelPath?paperId='+params,
    headers: {
        Authorization : localStorage.getItem('JWT_TOKEN')
    },})
    .then(res=> res.data)};

//资源管理-获取法人证件路径
export const getLegalIdPath = (params) =>
{ return axios
({method: 'get',
    url: '/api/v1/excel/uploadPic',
    headers: {
        Authorization : localStorage.getItem('JWT_TOKEN')
    },})
    .then(res=> res.data)};
